<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Vue.js demo ch-9 freeze</title>
</head>
<body>
	<div id="app">
		{{ msg }}
	</div>
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<script type="text/javascript">
		var data={msg:'消息'};
		Object.freeze(data);  //阻止
		var app =new Vue({
			el:'#app',
			data:data
		});
		data.msg="修改消息";
	</script>
</body>
</html>